const request = require("../utils/request");




//收藏和取消收藏
export const AddCart = id =>{
    const options = {
        data:{
            goods_id:id
        }
    }
    return request.post('/api/carts',options)
}

// 购物车列表
export const CartList = () =>{
    return request.get('/api/carts')
}